/*
 * @Date: 2020-08-27 09:11:10
 */
import React, { Component } from "react";
import Footer from "./Footer";
import Header from "./Header";

export default class LayOut extends Component {
  render() {
    const { children, showHeader, showFooter } = this.props;
    return (
      <div>
        {showHeader && <Header></Header>}
        {children}
        {showFooter && <Footer></Footer>}
      </div>
    );
  }
}
